package com.ego.member.feign;

import com.ego.common.util.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * @program: ego
 * @description: 远程商品服务
 * @author: KamTang
 * @create: 2023-01-30 15:05
 **/
@FeignClient("ego-product")
public interface ProductFeign {
    /**
     * 获取当前用户的购物项
     * @param memberId 会员id
     * @return 购物项
     */
    @GetMapping("/cart/getItem")
    @ResponseBody
    Result getCurrentUserCartItem(@RequestParam("memberId") Long memberId);
}
